package com.contest.dao;


import com.contest.entity.BettingRecord;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author yfl
 * @since 2017-12-20 16:26:22
 */
public interface  BettingRecordDao extends BaseMapper<BettingRecord> {
    /**
     * 当日玩家下注排行
     * @return
     */
    List<BettingRecord> todayTop();

    /**
     * 当日战队下注排行
     * @return
     */
    List<BettingRecord> todayClanTop();

    List<Map<String, Object>> countA();

    List<Map<String, Object>> countB();


    float getTodayByUserId(String userId);

    float getMonByUserId(String userId);

    float getTodayWinByUserId(String userId);

    float getTodayLoseByUserId(String userId);

    float getMonWinByUserId(String userId);

    float getMonLoseByUserId(String userId);
}